package com.example.cglib;

public class Main {
    public static void main(String[] args) {
        TeacherDao dao = new TeacherDao();
        ProxyFactory proxyFactory = new ProxyFactory(dao);
        TeacherDao proxyInstance = (TeacherDao) proxyFactory.getProxyInstance();
        proxyInstance.add();
    }
}
